package com.ecut.property_project.service.suite;

import com.ecut.property_project.mapper.suite.SuitePurposeMapper;
import com.ecut.property_project.model.suite.SuitePurpose;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SuitePurposeService{

    @Resource
    private SuitePurposeMapper suitePurposeMapper;

    
    public int deleteByPrimaryKey(Integer purposeId) {
        return suitePurposeMapper.deleteByPrimaryKey(purposeId);
    }

    
    public int insert(SuitePurpose record) {
        return suitePurposeMapper.insert(record);
    }

    
    public int insertSelective(SuitePurpose record) {
        return suitePurposeMapper.insertSelective(record);
    }

    public List<SuitePurpose> selectAll(){ return suitePurposeMapper.selectAll(); }

    public List<SuitePurpose> selectByPage(Integer page, Integer pageSize){return suitePurposeMapper.selectByPage(page,pageSize);}

    public SuitePurpose selectByPrimaryKey(Integer purposeId) {
        return suitePurposeMapper.selectByPrimaryKey(purposeId);
    }
    public List<SuitePurpose> selectByHeadId(String headId){
        return suitePurposeMapper.selectByHeadId(headId);
    }

    
    public int updateByPrimaryKeySelective(SuitePurpose record) {
        return suitePurposeMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(SuitePurpose record) {
        return suitePurposeMapper.updateByPrimaryKey(record);
    }

}
